<template>
  <u-sticky :enable="enable">
    <u-tabs
      :list="tabNav"
      :is-scroll="false"
      name="label"
      :current="current"
      @change="change"
    />
  </u-sticky>
</template>

<script>
import { mapActions } from "vuex";
import { tabNav } from "@/utils/format.js";
export default {
  data() {
    return {
      current: 0,
      tabNav: tabNav,
      enable: true,
    };
  },
  methods: {
    ...mapActions("home", ["change_tabobj_action"]),
    change(value) {
      this.current = value;
      this.change_tabobj_action(this.tabNav[value]);
    },
  },
};
</script>

<style>
</style>
